package com.mdc.bean;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * @author Mordecai
 * @version 1.0.0
 * @create 2017/9/24 14:05
 * @blog
 */

@Component
public class Stuff {
    @Value("${product.name}")
    private String name;

    @Value("${product.price}")
    private double price;

    public Stuff() {}

    public Stuff(String name, double price) {
        this.name = name;
        this.price = price;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }
}
